package com.template.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author wangqi
 * @date 2024-01-08 11:03
 */
@ConfigurationProperties(prefix = "feishu")
public class RobotProperty {
    private List<Robot> robots;
    /**
     * 是否禁用全部机器人
     */
    private Boolean disable = false;

    public RobotProperty() {
    }

    public RobotProperty(List<Robot> robots, Boolean disable) {
        this.robots = robots;
        this.disable = disable;
    }

    public List<Robot> getRobots() {
        return robots;
    }

    public void setRobots(List<Robot> robots) {
        this.robots = robots;
    }

    public Boolean getDisable() {
        return disable;
    }

    public void setDisable(Boolean disable) {
        this.disable = disable;
    }
}
